<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工列表</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="../css/x-admin.css" media="all">
  <link rel="stylesheet" href="../css/pag.css" media="all">

</head>
<body>
<div class="x-nav"> <span class="layui-breadcrumb"> <a><cite>首页</cite></a> <a><cite>员工管理</cite></a> </span> <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a> </div>
<div class="x-body">
  <form class="layui-form x-center" action="/webapp/yuangong" style="width:85%" method="post">
    <div class="layui-form-pane">
      <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline" style="width:100px">
          <input type="text" name="queryName"  placeholder="姓名" autocomplete="off" class="layui-input" value="${queryName}">
        </div>
        <label class="layui-form-label">职位</label>
        <div class="layui-input-inline" style="width:255px">
          <select name="queryDoctorjobTitle">
            <option value="0">--请选择--</option>
            <c:forEach items="${roleList}" var="role" varStatus="row">
              <option value="${role.rid}" <c:if test="${queryDoctorjobTitle eq role.rid}">selected</c:if>>
                  ${role.rname}
              </option>
            </c:forEach>
          </select>
        </div>
        <div class="layui-input-inline" style="width:80px">
          <button class="layui-btn"  lay-submit="" lay-filter="*">搜索</button>
        </div>
        <input name="currentPageNo" type="hidden" value="1"/>
      </div>
    </div>
  </form>
<div class="tools">
    <ul class="toolbar">
      <li><a href="/webapp/add"><span><img src="../images/t01.png" /></span>新增</a></li>
    </ul>
    <span class="x-right" style="line-height:25px" align="left">第${currentPageNo}页/共${totalPageCount}页</span>
    <span class="x-right" style="line-height:25px">共有数据：${totalCount}条</span></xblock>
  </div>
<table class="tablelist">
  <thead>
    <tr>
      </th>
      <th>编号</th>
      <th> 姓名</th>
      <th> 性别 </th>
      <th>所属部门</th>
      <th>职位</th>
      <th>科室电话</th>
      <th>状态</th>
      <th> 操作 </th>
    </tr>
  </thead>
  <tbody id="x-link">
  <c:forEach var="doctor" items="${doctorList}" varStatus="state">
    <tr>
      <td>${doctor.docid}</td>
      <td>${doctor.docname}</td>
      <td>
        <c:if test="${doctor.docsex eq 1}">女</c:if>
        <c:if test="${doctor.docsex eq 2}">男</c:if>
      </td>
      <td>${doctor.kname}</td>
      <td>${doctor.doctorRName}</td>
      <td>${doctor.landline}</td>
      <td>
        <c:if test="${doctor.state eq 1}"><button class="sp">在职</button></c:if>
        <c:if test="${doctor.state eq 2}"><button class="sp3">离职</button></c:if>
      </td>
      <td class="td-manage">
        <a title="查看" href="/webapp/seedoctor?docId=${doctor.docid}"> <i class="layui-icon">&#xe642;</i> </a>
        <a title="修改" href="/webapp/modifyById?docId=${doctor.docid}"> <i class="layui-icon">&#xe631;</i></a>
      </td>
    </tr>
  </c:forEach>
  </tbody>
</table>
<div class="page"  v-show="show">
  <input type="hidden" name="totalPageCount" id="totalPageCount" value="${totalPageCount}"/>
  <div class="pagelist">
    <span class="jump"><a href="javascript:page_nav(document.forms[0],1);"> 首页</a></span>
    <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo - 1});">上一页</a></span>
    <span class="jump"><a href="javascript:page_nav(document.forms[0],${currentPageNo + 1});">下一页</a></span>
    <span class="jump"><a href="javascript:page_nav(document.forms[0],${totalPageCount});">尾页</a></span>
    <span class="jumppoint">跳转到：</span>
    <span class="jumpinp"><input type="text" name="inputPage" id="inputPage"/></span>
    <button type="button" class="jump gobtn" onClick='jump_to(document.forms[0],document.getElementById("inputPage").value)'>GO</button>
  </div>
  </div>
  <div>
    <div id="page_container">
    </div>
  </div>
</div>
</div>
<br />
<br />
<br />
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../js/x-layui.js" charset="utf-8"></script>
<script src="../js/zygl/rollpage.js" charset="utf-8"></script>
<script src="../js/jquery2.js" charset="utf-8"></script>
<script src="../js/js.js" charset="utf-8"></script>
<script>
            layui.use(['element','laypage','layer','form'], function(){
                $ = layui.jquery;//jquery
              lement = layui.element();//面包导航
              laypage = layui.laypage;//分页
              layer = layui.layer;//弹出层
              form = layui.form();//弹出层
            });
            // 编辑
            function data_management_look (title,url,id,w,h) {
                x_admin_show(title,url,w,h); 
            }
            
            </script> 
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>